#include "GlobalFunctions.h"

NAMESPACE_BEGIN
std::vector<std::string> split(const std::string& str, const char& skip)
{
	std::vector<std::string> ans;
	std::string assist;
	for (auto& ch : str)
	{
		if (ch == skip)
		{
			if (!assist.empty())
			{
				ans.push_back(assist);
				assist.clear();
			}
		}
		else
		{
			assist += ch;
		}
	}
	if (!assist.empty())
	{
		ans.push_back(assist);
	}
	return ans;
}
NAMESPACE_END
